package com.classicmodels.controller;

import java.sql.Connection;

public class AppController {
/*
    private static final String CONNECTION_STRING= "jdbc:mysql://192.168.0.110/classic_models_inc";
    private static final String USUARIO= "curso";
    private static final String PASSWORD= "curso";
 */           
    private static CustomerController customerController;

    public static void init() throws Exception{
        Connection c=com.classicmodels.model.Datasource.conectarBaseDeDatos();
        customerController = new CustomerController(c);
        customerController.show_customers();
    }
    
    /*
    // se conecta a la base de datos y me devuelve la coneccion
    private static Connection conectarBaseDeDatos() throws Exception{
       
            Class.forName("com.mysql.jdbc.Driver");
            Connection c =DriverManager.getConnection(CONNECTION_STRING,USUARIO,PASSWORD);
            return  c;
    }
*/
    
    /*
    private static class Connetion {

        public Connetion() {
        }
    }*/
}
